package cn.lxh.org.domain;

import cn.lxh.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class Employee  extends BaseDomain {
    private String username;

    private String email;
    private String phone;
    private String salt;
    private String password;
    private Integer age;
    private Integer state;
    private Long department_id;
    private Long logininfo_id;
    private Long shop_id;


    public Employee(Long id, String username, String email, String phone, String salt, String password, Integer age, Integer state, Long department_id, Long logininfo_id, Long shop_id) {
        super(id);
        this.username = username;
        this.email = email;
        this.phone = phone;
        this.salt = salt;
        this.password = password;
        this.age = age;
        this.state = state;
        this.department_id = department_id;
        this.logininfo_id = logininfo_id;
        this.shop_id = shop_id;
    }

    public Employee() {
    }

    public Employee(Long id) {
        super(id);
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getDepartment_id() {
        return department_id;
    }

    public void setDepartment_id(Long department_id) {
        this.department_id = department_id;
    }

    public Long getLogininfo_id() {
        return logininfo_id;
    }

    public void setLogininfo_id(Long logininfo_id) {
        this.logininfo_id = logininfo_id;
    }

    public Long getShop_id() {
        return shop_id;
    }

    public void setShop_id(Long shop_id) {
        this.shop_id = shop_id;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "username='" + username + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", salt='" + salt + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age +
                ", state=" + state +
                ", department_id=" + department_id +
                ", logininfo_id=" + logininfo_id +
                ", shop_id=" + shop_id +
                '}';
    }
}
